package com.ssy.lingxi.workflow.repository;

import com.ssy.lingxi.workflow.entity.ExternalProcessRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 外部流程步骤关联的角色Jpa仓库类
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-29
 */
@Repository
public interface ExternalProcessRoleRepository extends JpaRepository<ExternalProcessRole, Long>, JpaSpecificationExecutor<ExternalProcessRole> {
    ExternalProcessRole findFirstByRoleId(Long roleId);
}
